@extends('Admin.layout.layout')
@section('content')
<div class="row">
    <div class="col-lg-12">
        <h1 class="page-header">修改分区</h1>
    </div>
    <!-- /.col-lg-12 -->
</div>
@if (count($errors) > 0 )
    <div class="alert alert-danger">
    @foreach ($errors->all() as $error)
        <li>{{ $error }}</li>
    @endforeach
    </div>
@endif    
<center>
<div style="width:600px">
<form action="{{url('/admin/part/update')}}" method="post">
    <div class="form-group">
        <label>分区名</label>
        <input name="partname" class="form-control" value="{{$part->partname}}">
    </div>
    <div class="form-group">
        <label>状态</label>
        <select class="form-control" name="status">
            <option value="1" @if($part->status == 1) selected="selected" @endif>不显示</option>
            <option value="2" @if($part->status == 2) selected="selected" @endif>显示</option>
        </select>
    </div>
    <input type="hidden" name="id" value="{{$part->id}}">
    {{ csrf_field() }}
    <button class="btn btn-primary btn-lg btn-block">提交</button>
</form>
</div>
</center>
@endsection